package com.soul.model.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.codecs.pojo.annotations.BsonId;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;

/**
 * @author mdoya
 * @version 1.0
 * @description:
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Document(collection = "options")
public class Options implements Serializable {
    @BsonId
    private ObjectId id;
    private String option; // 选项题目 A   B  C
    private String questionsId; // 题目主外键关系  一对多关系
    private Integer score; // 分数
}
